package com.itheima.d13_extends_visit;

public class Z extends F{
    String name = "子类名字";
    public void showName(){
        String name = "局部名称";
        System.out.println(name);
        System.out.println(this.name);
        System.out.println(super.name);
    }

    @Override
    public void print1() {
        System.out.println("子类重写了父类的print1方法");
    }

    public void showMethod(){
        print1();
        super.print1();
    }
}
